package com.chaipuyu.entity;

import javax.validation.constraints.NotBlank;

/**
 * 制单人表
 */

public class User {

  private Integer userId; //制单人工号
  @NotBlank(message = "用户名不允许为空")
  private String userName; //制单人姓名
  @NotBlank(message = "密码不允许为空")
  private String userPwd; //制单人密码
  private String userRole; //制单人身份

  public String getUserRole() {
    return userRole;
  }

  public void setUserRole(String userRole) {
    this.userRole = userRole;
  }

  public Integer getUserId() {
    return userId;
  }

  public void setUserId(Integer userId) {
    this.userId = userId;
  }

  public String getUserName() {
    return userName;
  }

  public void setUserName(String userName) {
    this.userName = userName;
  }

  public String getUserPwd() {
    return userPwd;
  }

  public void setUserPwd(String userPwd) {
    this.userPwd = userPwd;
  }

  public User() {
  }

  public User(Integer userId, String userName, String userPwd, String userRole) {
    this.userId = userId;
    this.userName = userName;
    this.userPwd = userPwd;
    this.userRole = userRole;
  }

  public User(Integer userId, String userName, String userPwd) {
    this.userId = userId;
    this.userName = userName;
    this.userPwd = userPwd;
  }

  @Override
  public String toString() {
    return "User{" +
            "userId=" + userId +
            ", userName='" + userName + '\'' +
            ", userPwd='" + userPwd + '\'' +
            ", userRole='" + userRole + '\'' +
            '}';
  }
}
